home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / misc / wclass20.zip / VC15FUNC.SCT < prev    next >
Text File  |  1994-12-20  |  1KB  |  46 lines

  1. // Class: CLASS
  2.  
  3. //////////////////////////.cpp file/////////////////////////////////////////////////////
  4. #include "stdafx.h"
  5. #include "$CLASS$.h"                    
  6.  
  7. // Functions for class CLASS
  8. [
  9. //  Function:     OPERATION_NAME
  10. //  Purpose:     OPERATION_COMMENT1
  11. //  Parameters: CPP_OPERATION_PARAMETERS
  12. //  Comments:     OPERATION_COMMENT2
  13. OPERATION_RETURN_TYPE CLASS::OPERATION_NAME(CPP_OPERATION_PARAMETERS) CPP_OPERATION_CONSTANT
  14. {
  15.   OPERATION_CODE
  16. }
  17.  
  18.             //Operator<< insertion for cout
  19.             //Update to access 1:M part class attributes
  20.             //Update to access 1:1 associated class attributes
  21.             //Update to access 1:M associated class attributes     
  22. ostream& operator<< (ostream& os, CLASS$& a$CLASS)
  23. {
  24. [  os << (BASE_CLASS &) a$CLASS;]
  25.   os << "Object Attribute Values - Class CLASS" << "\n";
  26. [  os << "ATTRIBUTE_NAME: " << a$CLASS$.$ATTRIBUTE_NAME << "\n";]
  27. [  os << "  AGGREGATION_ONE_NAME$: " << a$CLASS$.$AGGREGATION_ONE_NAME << "\n";]
  28.   return os;
  29. }            
  30.  
  31.             //Operator>> extraction for cin
  32.             //Update to access 1:M part class attributes
  33.             //Update to access 1:1 associated class attributes
  34.             //Update to access 1:M associated class attributes 
  35. istream& operator>> (istream& is, CLASS$& a$CLASS)
  36. {
  37. [  is >> (BASE_CLASS &) a$CLASS;]
  38.   cout << "\nEnter Object Attibute Values - Class CLASS"; 
  39. [  cout << "\nEnter ATTRIBUTE_NAME : " << "\n";
  40.   is >> a$CLASS$.$ATTRIBUTE_NAME;]        
  41. [  is >> a$CLASS$.$AGGREGATION_ONE_NAME;]
  42.   return is;
  43. }                
  44.  
  45.